package com.liangzong.betspider.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

//比分
@Data
@ApiModel
@Table(name = "t_score")
public class TeamScore {
    @Id
    @Column(name = "id")
    private int id;
    @Column(name = "team_id")
    private String teamId;
    //射正球门
    @Column(name = "s1")
    private Integer s1 = 0;
    //射偏球门
    @Column(name = "s2")
    private Integer s2 = 0;
    //进攻
    @Column(name = "s3")
    private Integer s3 = 0;
    //危险进攻
    @Column(name = "s4")
    private Integer s4 = 0;
    @Column(name = "s5")
    private Integer s5 = 0;
    @Column(name = "s6")
    private Integer s6 = 0;
    //球权
    @Column(name = "s7")
    private Integer s7 = 0;
    //排序
    @Column(name = "sort")
    private Integer sort = 0;
    @Column(name = "sc")
    private Integer sc = 0;
    @Column(name = "team_type")
    private int teamType;
    @Column(name = "add_time")
    private LocalDateTime addTime;
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("");
        sb.append("射正球门=").append(s1).append("\n\r");
        sb.append("射偏球门=").append(s2).append("\n\r");
        sb.append("进攻=").append(s3).append("\n\r");
        sb.append("危险进攻=").append(s4).append("\n\r");
        sb.append("球权=").append(s7).append("\n\r");

        return sb.toString();
    }
}
